/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.DBConnect;
import DAO.PhongDAO;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;


/**
 *
 * @author PC
 */

public class PhongBUS {
     public static ResultSet  TimKiemTatCa() {
        return PhongDAO.TimKiemTatCa();
    }
     
      public static ResultSet TimKiemTheoToa(String toa)
    {
        return PhongDAO.TimKiemTheoToa(toa);

    }
     public static boolean KiemTraTonTai(String MaNV)
    {
        return PhongDAO.KiemTraTonTai(MaNV);
    }
     public static boolean Them(DTO.Phong n) {
         return PhongDAO.Them(n);
     }
    public static boolean Xoa(String id) {
         return PhongDAO.Xoa(id);
     }
     public static boolean Update(DTO.Phong NV,String id){
          return PhongDAO.Update(NV,id);
     }
}
